import request from '@/utils/request'

//  分页查询资源信息
export function getPageList(query) {
  return request({
    url: '/api/admin/system/res/list',
    method: 'post',
    data: query
  })
}

//  保存资源信息
export function handleSave(data) {
  return request({
    url: '/api/admin/system/res/save',
    method: 'post',
    data: data
  })
}

//  删除资源信息
export function handleDelete(data) {
  return request({
    url: '/api/admin/system/res/delete',
    method: 'post',
    params: data
  })
}

//  查询菜单树形结构信息
export function getAllResList(data) {
  return request({
    url: '/api/admin/system/res/getAllResList',
    method: 'get',
    params: data
  })
}
